package com.project.forum.utils;

import java.util.UUID;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2025-07-17
 * Time:21:37
 */
//生成随机字符串
public class UUIDUtil {
    //生成一个36位的UUID(标准的）
    public static String UUID_36(){
        return UUID.randomUUID().toString();
    }
    //生成一个32位的UUID
    public static String UUID_32(){
        return UUID.randomUUID().toString().replace("-","");
    }
}
